package com.zoe.app.controller;

import cn.hutool.core.date.DateUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Zoe.Zhang
 * @date 2021/10/08
 * @description
 */
@RestController
// @CrossOrigin
public class HelloController {
    @GetMapping("/hello")
    public String getHello() {
        return "getHello" + DateUtil.today();
    }

    @PutMapping("/hello")
    public String putHello() {
        return "putHello" + DateUtil.today();
    }
}
